|
|
|
|
|
|
|
Of course, like anything else in the application process, designing reports requires some thought before actually creating them. For each report that you are creating, you should answer the following questions: |
|
|
|
 |
|
|
|
|
What is the function of the report? |
|
|
|
 |
|
|
|
|
What data will be included on the report? |
|
|
|
 |
|
|
|
|
Does it need filter capabilities? |
|
|
|
 |
|
|
|
|
What will be the layout of the report? |
|
|
|
|
|
|
|
|
If you have the answers to these questions, your reports will perform well. Before starting Crystal Reports, you should sketch out what the report will look like and also list the fields needed for the report. The report that you design in this section will use the address book database discussed earlier in the week. An address book application usually needs several types of reports, including mailing label, phone lists, and a complete address book report. |
|
|
|
|
|
|
|
|
Although you will learn enough about Crystal Reports to create most reports you need, this chapter is really meant to show you how to integrate Crystal Reports into an application while providing the user with several advanced features. The report that we will be creating is the address/phone list report, which will contain the following information: |
|
|
|
 |
|
|
|
|
Name |
|
|
|
 |
|
|
|
|
Address |
|
|
|
 |
|
|
|
|
City |
|
|
|
 |
|
|
|
|
State |
|
|
|
 |
|
|
|
|
ZIP |
|
|
|
 |
|
|
|
|
Home Phone |
|
|
|
 |
|
|
|
|
Office Phone, if any |
|
|
|
|
|
|
|
|
Although this is a fairly simple report, it will enable you to learn the necessary skills to create any type of report. After you have listed the fields, the next step is to sketch the layout of the report. |
|
|
|
|
|
|
|
|
After you are satisfied with the layout, the next step is to start Crystal Reports. There are two ways to start it, either from the Visual Basic menu or the Windows 95 Start menu. If you are primarily working on reports, you might consider shutting Visual Basic until you need it, and run Crystal Reports from the Start menu. Once started, you are placed in the main window as shown earlier in Figure 13.1. |
|
|
|
|
|